package com.xj.demoExcel.easyexcel;

import com.alibaba.excel.annotation.ExcelProperty;

public class Student {

    @ExcelProperty(index = 0,value = "学号")
    private String id;

    @ExcelProperty(index = 1,value = "姓名")
    private String name;

    @ExcelProperty(index = 2,value = "性别")
    private String sex;

    @ExcelProperty(index = 4,value = "年龄")
    private Integer age;

    @ExcelProperty(index = 5,value = "班级")
    private String className;

    @ExcelProperty(index = 6,value = "专业")
    private String major;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", className='" + className + '\'' +
                ", major='" + major + '\'' +
                '}';
    }
}
